import request from '@/utils/request-server'

// 获取查卷申请列表
export function getRecheckRequestList(params) {
  return request({
    url: '/zym/recheckRequestManage/getRecheckRequestList',
    method: 'get',
    params
  })
}

// 在查卷申请列表中，点击"查卷按钮"，获取学生试卷
export function getStudentPaper(data) {
  return request({
    url: '/zym/recheckRequestManage/recheckBySelf',
    method: 'post',
    data
  })
}

// 驳回查卷申请
export function rejectTheRequest(data) {
  return request({
    url: '/zym/recheckRequestManage/rejectTheRequest',
    method: 'post',
    data
  })
}

// 查看驳回原因
export function getRejectReason(params) {
  return request({
    url: '/zym/recheckRequestManage/getRejectReason',
    method: 'get',
    params
  })
}


// 根据用户id获取教师列表
export function getSubjectTeachers(params) {
  return request({
    url: '/zym/recheckRequestManage/getSubjectTeachers',
    method: 'get',
    params
  })
}

// 给教师分配查卷任务
export function RecheckAssignment(data) {
  return request({
    url: '/zym/recheckRequestManage/recheckAssignment',
    method: 'post',
    data
  })
} 

// 查看复审结果
export function getRecheckResult(params) {
  return request({
    url: '/zym/recheckRequestManage/getRecheckResult',
    method: 'get',
    params
  })
}

// 发送复审结果给申请查卷的教师 
export function recoverRecheckResult(data) {
  return request({
    url: '/zym/recheckRequestManage/recoverRecheckResult',
    method: 'post',
    data
  })
}